[id].vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation1></HomePageNavigation1>
  7. <!-- 列表页广告一 -->
  8. <HomeTopTen :imgurl="adList[0]" v-if="adList[0]"></HomeTopTen>
  9. <!-- 面包屑导航 -->
  10. <div class="breadcrumb">
  11. <div class="inner">
  12. <span class="location">当前位置:</span>
  13. <el-breadcrumb :separator-icon="ArrowRight">
  14. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  15. <el-breadcrumb-item :to="{ path: '/specialList/7' }">本网招聘</el-breadcrumb-item>
  16. </el-breadcrumb>
  17. </div>
  18. </div>
  19. <div class="projectMoreBox">
  20. <div class="projectMoreTitle">社会保障在线网</div>
  21. <div class="projectMoreText">
  22. <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
  23. <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
  24. <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
  25. </div>
  26. </div>
  27. <!-- 资讯列表 -->
  28. <div class="newsList">
  29. <div class="inner">
  30. <div class="innerLeft">
  31. <div class="innerTitle">本网招聘</div>
  32. <ul class="list">
  33. <li v-for="(item, index) in newsList" :key="index">
  34. <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank">{{item.con_title}}</NuxtLink>
  35. <!-- <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" v-if="item.islink == 0">{{ item.list_title }}</NuxtLink> -->
  36. </li>
  37. </ul>
  38. <!-- 分页器 -->
  39. <!-- <div class="pagination">
  40. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  41. prev-text="上一页" next-text="下一页" @change="changePage" />
  42. </div> -->
  43. </div>
  44. <div class="innerRight">
  45. <div class="rightMenuTitle">导航列表</div>
  46. <ul>
  47. <li v-for="(item, index) in bottomMenu" :key="index">
  48. <NuxtLink :to="`/speciaArticle/${item.id}`" target="_blank" v-if="item.id == pageId && item.id != 7" class="active">{{ item.name }}</NuxtLink>
  49. <NuxtLink :to="`/speciaArticle/${item.id}`" target="_blank" v-else-if="item.id != pageId && item.id != 7">{{ item.name }}</NuxtLink>
  50. <NuxtLink :to="`/specialList/${item.id}`" target="_blank" v-if="item.id == 7 && pageId == 7 && routeHref == '/specialList/7'" class="active">{{item.name}}</NuxtLink>
  51. <NuxtLink :to="`/specialList/${item.id}`" target="_blank" v-else-if="item.id == 7">{{item.name}}</NuxtLink>
  52. </li>
  53. </ul>
  54. </div>
  55. </div>
  56. </div>
  57. <!-- 列表页广告二 -->
  58. <HomeTopTen :imgurl="adList[1]" v-if="adList[1]"></HomeTopTen>
  59. <!-- 页面底部 -->
  60. <HomeFoot1></HomeFoot1>
  61. </div>
  62. </template>
  63. <script setup>
  64. //1.页面依赖 start ---------------------------------------->
  65. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  66. import { ArrowRight } from '@element-plus/icons-vue'
  67. //获得跳转过来的id
  68. const route = useRoute();
  69. const pageId = route.params.id;
  70. const routeHref = route.href;
  71. //1.页面依赖 end ---------------------------------------->
  72. //2.页面数据 start ---------------------------------------->
  73. let adList = ref([]);
  74. //广告
  75. const {data:adData,error:adError} = requestData('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'PAGE'}});
  76. if (adError.value) {
  77. console.error('广告列表请求失败:', adError.value);
  78. } else {
  79. if (adData.value && adData.value.data) {
  80. adList.value = adData.value.data;
  81. }
  82. }
  83. //左侧导航
  84. const bottomMenu = ref([]);
  85. async function getPageMenu() {
  86. const { data: mkdata, error: mkdataError } = requestData('/web/getWebsiteFooterCategory', {
  87. method: 'GET',
  88. query: {},
  89. });
  90. if (mkdataError.value) {
  91. //console.log()
  92. } else {
  93. if (mkdata.value) {
  94. bottomMenu.value = mkdata.value.data;
  95. }
  96. }
  97. }
  98. getPageMenu();
  99. //列表
  100. const newsList = ref([]);
  101. let newslists = async () => {
  102. const listData = await requestDataPromise('/web/getWebsiteFooterCategoryList', {
  103. method: 'GET',
  104. query: {
  105. 'fcat_id':pageId,
  106. },
  107. });
  108. console.log(9999)
  109. newsList.value = listData.data;
  110. console.log(newsList.value)
  111. }
  112. //获得列表
  113. newslists();
  114. //分页
  115. let changePage = (value) => {
  116. console.log("当前页码", value);
  117. page.value = value
  118. console.log(page.value);
  119. newslists()
  120. }
  121. //2.页面数据 end ---------------------------------------->
  122. //3 设置seo信息
  123. async function getSeo() {
  124. const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
  125. method: 'GET',
  126. query: {},
  127. });
  128. seoSetup(setData.data.website_head.title,setData.data.website_head.description,setData.data.website_head.keywords)
  129. }
  130. getSeo();
  131. //3.设置seo信息 end---------------------------------------->
  132. </script>
  133. <style lang="less" scoped>
  134. //导航条
  135. .breadcrumb {
  136. width: 100%;
  137. height: 22px;
  138. margin-bottom: 30px;
  139. font-family: Microsoft YaHei, Microsoft YaHei;
  140. font-weight: 400;
  141. font-size: 20px;
  142. color: #666666;
  143. line-height: 23px;
  144. text-align: left;
  145. font-style: normal;
  146. text-transform: none;
  147. :deep(.el-breadcrumb) {
  148. display: inline-block;
  149. vertical-align: -4px;
  150. }
  151. :deep(.el-breadcrumb__inner a),
  152. :deep(.el-breadcrumb__inner.is-link) {
  153. color: #666666;
  154. font-weight: 400;
  155. text-decoration: none;
  156. transition: var(--el-transition-color);
  157. }
  158. span {
  159. font-family: Microsoft YaHei, Microsoft YaHei;
  160. font-weight: 400;
  161. font-size: 20px;
  162. color: #666666;
  163. line-height: 23px;
  164. text-align: left;
  165. font-style: normal;
  166. text-transform: none;
  167. }
  168. span:hover {
  169. color: #666666;
  170. }
  171. .location {
  172. margin-right: 20px;
  173. width: 100px;
  174. height: 22px;
  175. font-family: Microsoft YaHei, Microsoft YaHei;
  176. font-weight: 400;
  177. font-size: 20px;
  178. color: #666666;
  179. line-height: 23px;
  180. text-align: left;
  181. font-style: normal;
  182. text-transform: none;
  183. }
  184. }
  185. // 资讯列表
  186. .newsList {
  187. width: 100%;
  188. height: 675px;
  189. margin-bottom: 70px;
  190. .inner {
  191. width: 1200px;
  192. .innerLeft {
  193. height: 65px;
  194. line-height: 65px;
  195. font-size: 22px;
  196. color: #028E21;
  197. font-weight: bold;
  198. }
  199. .innerTitle {
  200. font-size: 24px;
  201. }
  202. .innerLeft {
  203. height: 675px;
  204. float: right;
  205. >.list {
  206. height: 570px;
  207. margin-bottom: 70px;
  208. border-top: 1px solid #139602;
  209. >li {
  210. width: 790px;
  211. height: 60px;
  212. white-space: nowrap;
  213. overflow: hidden;
  214. text-overflow: ellipsis;
  215. line-height: 60px;
  216. //border-bottom: 1px solid #D9D9D9;
  217. >a {
  218. width: 360px;
  219. height: 26px;
  220. cursor: pointer;
  221. font-family: Microsoft YaHei, Microsoft YaHei;
  222. font-weight: 400;
  223. font-size: 20px;
  224. color: #333333;
  225. line-height: 26px;
  226. text-align: left;
  227. font-style: normal;
  228. text-transform: none;
  229. }
  230. }
  231. >li:hover>a {
  232. color: #139602;
  233. }
  234. >li:nth-child(1)::after,
  235. >li:nth-child(2)::after {
  236. content: "热";
  237. margin-left: 13px;
  238. background: #FF8A37;
  239. color: #fff;
  240. font-size: 14px;
  241. padding: 0px 2px;
  242. }
  243. >li:nth-child(5n) {
  244. border-bottom: 1px solid #D9D9D9;
  245. }
  246. }
  247. >.pagination {
  248. width: 800px;
  249. height: 34px;
  250. margin-left: 141px;
  251. display: flex;
  252. justify-content: center;
  253. margin: 0;
  254. // 鼠标移入后字体颜色
  255. .el-pagination::v-deep :hover {
  256. color: #139609;
  257. }
  258. .el-pagination.is-background::v-deep .btn-next,
  259. .el-pagination.is-background::v-deep .btn-prev {
  260. width: 70px;
  261. height: 34px;
  262. margin: 0px 10px;
  263. border-radius: 4px;
  264. }
  265. .el-pagination.is-background::v-deep .el-pager li {
  266. margin: 0px 10px;
  267. width: 38px;
  268. height: 34px;
  269. border-radius: 4px;
  270. }
  271. .el-pagination.is-background::v-deep .btn-next.is-active,
  272. .el-pagination.is-background::v-deep .btn-prev.is-active,
  273. .el-pagination.is-background::v-deep .el-pager li.is-active {
  274. background-color: #028e21;
  275. color: #fff;
  276. }
  277. }
  278. }
  279. .innerRight {
  280. width: 279px;
  281. .rightMenuTitle {
  282. width: 279px;
  283. height: 69px;
  284. font-size: 22px;
  285. font-weight: bold;
  286. line-height: 58px;
  287. text-align: center;
  288. color: #fff;
  289. background: url("../../static/special/projectMoreTitle.png") no-repeat;
  290. margin-bottom: 30px;
  291. }
  292. ul {
  293. li {
  294. a {
  295. border-left: 5px solid #028E21;
  296. margin-bottom: 15px;
  297. font-size: 22px;
  298. display: block;
  299. height: 61px;
  300. line-height: 61px;
  301. color: #333333;
  302. text-align: center;
  303. background: #FBFBFB;
  304. }
  305. }
  306. }
  307. .active {
  308. border-left: 0;
  309. border: 1px solid #028E21;
  310. background: #fff;
  311. }
  312. }
  313. }
  314. }
  315. //资讯推荐
  316. .zixuntuijian {
  317. width: 100%;
  318. height: 290px;
  319. margin-bottom: 70px;
  320. .innerLeft {
  321. // 左侧
  322. .zixunLeft {
  323. margin-right: 30px;
  324. }
  325. .zixunRight,
  326. .zixunLeft {
  327. float: left;
  328. width: 380px;
  329. height: 290px;
  330. // 标题部分
  331. >.title {
  332. width: 380px;
  333. }
  334. >.title>h3 {
  335. height: 36px;
  336. font-family: Source Han Sans, Source Han Sans;
  337. font-weight: bold;
  338. font-size: 24px;
  339. color: #000000;
  340. line-height: 28px;
  341. text-align: left;
  342. font-style: normal;
  343. text-transform: none;
  344. border-bottom: 1px solid #139602;
  345. }
  346. >.title>h3>span {
  347. float: right;
  348. width: 56px;
  349. height: 20px;
  350. line-height: 24px;
  351. font-weight: 400;
  352. font-size: 14px;
  353. color: #999999;
  354. font-style: normal;
  355. text-transform: none;
  356. }
  357. .photo_text {
  358. >li:first-child {
  359. width: 380px;
  360. height: 120px;
  361. margin-top: 20px;
  362. margin-bottom: 15px;
  363. position: relative;
  364. >img {
  365. float: left;
  366. width: 160px;
  367. height: 120px;
  368. }
  369. >div {
  370. float: left;
  371. width: 220px;
  372. height: 120px;
  373. padding-left: 15px;
  374. padding-top: 6px;
  375. box-sizing: border-box;
  376. background-color: #f6f6f6;
  377. >h5 {
  378. width: 200px;
  379. height: 54px;
  380. display: -webkit-box;
  381. -webkit-box-orient: vertical;
  382. -webkit-line-clamp: 2;
  383. overflow: hidden;
  384. text-overflow: ellipsis;
  385. word-break: break-all;
  386. font-family: Source Han Sans, Source Han Sans;
  387. font-weight: 500;
  388. font-size: 18px;
  389. color: #333333;
  390. line-height: 26px;
  391. text-align: left;
  392. font-style: normal;
  393. text-transform: none;
  394. }
  395. >p {
  396. width: 200px;
  397. height: 22px;
  398. line-height: 20px;
  399. position: absolute;
  400. bottom: 5px;
  401. right: 0;
  402. >span {
  403. display: inline-block;
  404. // width: 100px;
  405. height: 18px;
  406. font-family: Source Han Sans, Source Han Sans;
  407. font-weight: 400;
  408. font-size: 12px;
  409. color: #999999;
  410. text-align: left;
  411. line-height: 14px;
  412. font-style: normal;
  413. text-transform: none;
  414. }
  415. >span:last-child {
  416. // width: 90px;
  417. text-align: right;
  418. margin-left: 20px;
  419. }
  420. }
  421. }
  422. }
  423. >li {
  424. width: 380px;
  425. height: 25px;
  426. white-space: nowrap;
  427. overflow: hidden;
  428. text-overflow: ellipsis;
  429. font-family: PingFang SC, PingFang SC;
  430. font-weight: 500;
  431. font-size: 18px;
  432. color: #333333;
  433. line-height: 21px;
  434. text-align: left;
  435. font-style: normal;
  436. text-transform: none;
  437. margin-bottom: 10px;
  438. em {
  439. display: inline-block;
  440. width: 8px;
  441. height: 8px;
  442. border-radius: 8px;
  443. margin-right: 10px;
  444. background-color: #d9d9d9;
  445. }
  446. }
  447. >li:hover {
  448. color: #139602;
  449. }
  450. >li:hover em {
  451. background-color: #139602;
  452. }
  453. }
  454. }
  455. }
  456. .innerRight {
  457. width: 381px;
  458. height: 290px;
  459. background-color: #fbfbfb;
  460. >.title {
  461. width: 380px;
  462. height: 40px;
  463. line-height: 40px;
  464. border-top: 1px solid #139602;
  465. border-bottom: 1px solid #e7e7e7;
  466. >h4 {
  467. font-family: Microsoft YaHei, Microsoft YaHei;
  468. font-weight: 400;
  469. margin-left: 20px;
  470. font-size: 20px;
  471. color: #000000;
  472. text-align: left;
  473. font-style: normal;
  474. text-transform: none;
  475. >span {
  476. float: right;
  477. font-family: Microsoft YaHei, Microsoft YaHei;
  478. font-weight: 400;
  479. font-size: 14px;
  480. margin-right: 10px;
  481. color: #999999;
  482. text-align: left;
  483. font-style: normal;
  484. text-transform: none;
  485. }
  486. }
  487. }
  488. .rightList {
  489. height: 540px;
  490. margin-top: 20px;
  491. >li {
  492. height: 100px;
  493. margin-bottom: 10px;
  494. >img {
  495. width: 150px;
  496. height: 100px;
  497. }
  498. >p {
  499. width: 219px;
  500. height: 100px;
  501. padding-left: 12px;
  502. font-family: PingFang SC, PingFang SC;
  503. font-weight: 400;
  504. font-size: 16px;
  505. color: #333333;
  506. line-height: 22px;
  507. text-align: left;
  508. font-style: normal;
  509. text-transform: none;
  510. }
  511. >p:hover {
  512. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  513. }
  514. }
  515. }
  516. }
  517. }
  518. .projectMoreBox {
  519. width: 1200px;
  520. margin: 0 auto;
  521. height: 452px;
  522. margin-top: 20px;
  523. background: url("../../static/special/projectMoreBg.png") no-repeat;
  524. margin-bottom: 40px;
  525. .projectMoreTitle {
  526. color: #028E21;
  527. padding-top: 45px;
  528. font-size: 26px;
  529. padding-left: 204px;
  530. }
  531. .projectMoreText {
  532. padding: 40px;
  533. font-size: 20px;
  534. color: #333333;
  535. text-indent: 2em;
  536. line-height: 36px;
  537. }
  538. }
  539. </style>